﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;

namespace BDRUtils.VerifyCode
{
    public static class VerifyCodeExtionsions
    {
        /// <summary>
        /// 注入验证码服务
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddVerifyCodeService(this IServiceCollection services)
        {
            services.TryAddSingleton<IVerifyCode, VetifyCodeSevice>();
            return services;
        }
    }
}
